//
//  UITextInput+CLExtension.h
//
//  Created by Billy on 16/6/17.
//  Copyright © 2016年 . All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CLTextFieldDelegate <UITextFieldDelegate>

@optional

- (void)textFieldDidDeleteBackward:(UITextField *)textField;

@end


@interface UITextField (DeleteBackward)

@property (nonatomic, weak) id<CLTextFieldDelegate> delegate;

@end

/**
 * 监听删除按钮 
 * object:UITextField
 */

extern NSString * const WKTextFieldDidDeleteBackwardNotification;


@interface UITextView (SelectExtentRange)

- (NSRange)selectedRange;

- (void)setSelectedRange:(NSRange) range;

@end




@interface UITextField (SelectExtentRange)

- (NSRange)selectedRange;

- (void)setSelectedRange:(NSRange) range;

@end

